package Demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: homechen
 * Date: 2024-03-24
 * Time: 11:05
 */
public class PassExample3 {
    public static void main(String[] args) {
        char[] name = {'唐','晨'};
        System.out.println("调用方法前：" + new String(name));
        method(name);
        System.out.println("调用方法后：" + new String(name));
    }
    private static void method(char[] name) {
        name[1] = '辰';
        System.out.println("方法调用中：" + new String(name));
    }
}
